<?php

	session_start();
	include '../connect.php'; 
	
	if ( isset($_SESSION['auth']))
	{
		$sql = "SELECT categ FROM $table_name WHERE user_name='$_SESSION[logname]'";
		$result = mysql_query($sql,$db);
		$infos = mysql_fetch_array($result);

		if ( $infos['categ'] != 10 )
		{

		}
		else 
		{
			if (isset($_GET['username']) && $_GET['username'] != "")
			{
				$sql = "DELETE from $table_name WHERE user_name='$_GET[username]'";
				$result = mysql_query($sql,$db) or die("Impossible de supprimer l'user");
			}
		}
	}

?>